import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Random;


public class Arquivo {

	Random gerador = new Random();
	int numero = gerador.nextInt(5);
	
	public String[] selecionarALL(String fileName) throws IOException, FileNotFoundException{		
		FileInputStream stream = new FileInputStream(fileName);
		InputStreamReader streamReader = new InputStreamReader(stream);
		BufferedReader reader = new BufferedReader(streamReader);
		ArrayList<String> lresult = new ArrayList<String>();

			
			String line = "";
			while((line = reader.readLine())!=null) {
				lresult.add(line);
			}
			String a = lresult.get(numero);
			String[] Per = a.split(";");
			return Per;
		}
}